package calao.storage;

/** A condition on a value.
 * 
 * @author <a href="mailto:nifa@signal25.com">Nicolas Faivre</a>
 */
public abstract class FieldCondition {
		
	final Field field;
	
	protected FieldCondition(Field field)
	{
		this.field = field;
	}
	
	/** Gets the conditioned field.
	 */
	final public Field getField()
	{
		return field;
	}
	
	/** Checks whether a value matches this condition.
	 */
	public abstract boolean matches(Object value);
	
}
